<% if path %>
<p class="path"> 
  <a href="/paths/<%= path.id %>" onclick="Javascript:BrowsePath(<%=path.id%>);return false" class="path_title_link"><%= path.title %></a>  
  by <%= link_to path.user.login, user_path(path.user), {:class=>'admin'} unless path.user.nil? %>
  on <%= path.created_at.strftime("%B %d, %Y") unless path.created_at.nil?%>
  <% if is_authorized(path.user, 'admin') && include_admin == true %>
      <%= link_to 'edit', edit_path_path(path), {:class=>'admin'} %>
      <%= link_to 'delete', path_path(path), {:class=>'admin', :confirm => 'Are you sure you wish to delete this path?', :method => :delete} %>
      <%= link_to 'preview', path_path(path), {:class=>'admin'} %>
      <%= render :partial => "shared/published_link", :object => path %>
  <% end %>
</p>
<% end %>